package com.class5.springboot.frame.logger;

import com.class5.springboot.frame.context.SuperServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class LoginLoggerServiceImpl extends SuperServiceImpl implements ILoginLoggerService{

    @Override
    public BaseLoginLogger create(Long uid, Long orgId, String ip, String app) {
        BaseLoginLogger logger = new BaseLoginLogger();
        logger.setIp(ip);
        logger.setUserId(uid);
        logger.setOrgId(orgId);
        return repo.insert(logger);
    }



}